#!/usr/bin/env python
# -*- coding: utf-8 -*-

from django.urls import path
from vehicle import views
from django.views.decorators.csrf import csrf_exempt
from rest_framework.routers import SimpleRouter
from .views import *

router = SimpleRouter()
router.register("api/vehicle", VehicleInfoModelViewSet)
router.register("api/vehicle_fence", Vehicle_fenceModelViewSet)
router.register("api/vehicle_fault", Vehicle_fault_infoModelViewSet)
router.register("api/vehicle_fault_log", Vehicle_fault_logModelViewSet)
router.register("api/vehicle_move", Vehicle_move_infoModelViewSet)
urlpatterns = [
    path("api/vehicle_info/real_data/<str:pk>", views.VehicleMove_info.as_view())
]
urlpatterns += router.urls
